﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QLCHHoaLan
{
    public partial class FrmTimKiem : Form
    {
        public FrmTimKiem()
        {
            InitializeComponent();
        }

        private void btnThoat_Click(object sender, EventArgs e)
        {
            Menu main = new Menu();
            main.kq = 1;
            main.Show();
            this.Hide();
        }

        private void btnTim_Click(object sender, EventArgs e)
        {
            if(cbbTim.Text == "Hoa")
            {
                FrmTimKiemHoa frm = new FrmTimKiemHoa();
                frm.Show();
                this.Hide();
            }
            if (cbbTim.Text == "Nhà Cung Cấp")
            {
                FrmTimKiemNhaCungCap frm = new FrmTimKiemNhaCungCap();
                frm.Show();
                this.Hide();
            }
            if (cbbTim.Text == "Khách Hàng")
            {
                FrmTimKiemKhachHang frm = new FrmTimKiemKhachHang();
                frm.Show();
                this.Hide();
            }
            if (cbbTim.Text == "Hóa Đơn")
            {
                FrmTimKiemHoaDon frm = new FrmTimKiemHoaDon();
                frm.Show();
                this.Hide();
            }
        }
    }
}
